<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0047)http://115.28.87.22:8888/business/AcceSear.html -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>上传文件一览表 | 管理易-广告加工制作管理软件  企业版 9.28  | 易凯软件</title>
<script src="../js/minierp.js"></script>

<link href="../css/Query.css" rel="stylesheet" type="text/css">
<link href="../css/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../css/BillList.css">
<script src="../js/QueryList.js"></script>
<script src="../js/popup_ext.js"></script>
<script src="../js/dhtmlgoodies_calendar.js"></script>
<script language="javascript">
	function doShow(id){
	}
	function doDelete(id){
		
			ShowConfirm('确认框','确定删除吗？',340,80,"doDeleCallback("+id+")");
		
		
	}
	function doDeleCallback(id){
		if(popRetVal!=null){
			var fromUrl=encodeURIComponent(window.location);
			window.location="../business/AccessoryDelete.html?id="+id+"&from_url="+fromUrl;
		}
	}
	function createPageParaStr(){
		var str="start_date="+encodeURIComponent(document.getElementById("start_date").value);
		str=str+"&end_date="+encodeURIComponent(document.getElementById("end_date").value);
		
		str=str+"&crea_name="+encodeURIComponent(document.getElementById("crea_name").value);
		str=str+"&desi_name="+encodeURIComponent(document.getElementById("desi_name").value);
		str=str+"&est_name="+encodeURIComponent(document.getElementById("est_name").value);
		str=str+"&bb_code="+encodeURIComponent(document.getElementById("bb_code").value);
		str=str+"&ts_id="+document.getElementById("ts_id").value;
		
		return str;
	}
	
	function createProgramParaStr(){
		var str="start_date="+encodeURIComponent(document.getElementById("hid_start_date").value);
		str=str+"&end_date="+encodeURIComponent(document.getElementById("hid_end_date").value);
		str=str+"&desi_name="+encodeURIComponent(document.getElementById("hid_desi_name").value);
		str=str+"&crea_name="+encodeURIComponent(document.getElementById("hid_crea_name").value);
		str=str+"&est_name="+encodeURIComponent(document.getElementById("hid_est_name").value);
		str=str+"&bb_code="+encodeURIComponent(document.getElementById("hid_bb_code").value);
		str=str+"&ts_id=1";
		
		return str;
	}
	
	function doSearch(){
		var str;
		if(IsAdvSearch){//高级
			str="search_type=1";
			
			if(document.getElementById("cb_crea_date").checked){
				if(!checkDateStr(document.getElementById("start_date").value,"开始日期")){
					return;
				}
				if(!checkDateStr(document.getElementById("end_date").value,"结束日期")){
					return;
				}
				str=str+"&cb_crea_date=1";
			}
			if(document.getElementById("cb_crea").checked){
				var creaName=document.getElementById("crea_name").value.trim();
				if(creaName==null || creaName==""){
					ShowAlert('提示框','请输入上传人姓名',200,100);
					return;
				}
				str=str+"&cb_crea=1";
			}
			
			if(document.getElementById("cb_desi").checked){
				var desiName=document.getElementById("desi_name").value.trim();
				if(desiName==null || desiName==""){
					ShowAlert('提示框','请输入设计员姓名',200,100);
					return;
				}
				str=str+"&cb_desi=1";
			}
			
			if(document.getElementById("cb_est").checked){
				var estName=document.getElementById("est_name").value.trim();
				if(estName==null || estName==""){
					ShowAlert('提示框','请输入订货单位',200,100);
					return;
				}
				str=str+"&cb_est=1";
			}
			
			if(document.getElementById("cb_bb_code").checked){
				var bbCode=document.getElementById("bb_code").value.trim();
				if(bbCode==null || bbCode==""){
					ShowAlert('提示框','请输入业务单号',200,100);
					return;
				}
				str=str+"&cb_bb_code=1";
			}
			
			if(document.getElementById("cb_ts").checked){
				var tsId=document.getElementById("ts_id").value;
				if(tsId==null || tsId=="" || tsId=="0"){
					ShowAlert('提示框','请选择帐套',200,100);
					return;
				}
				str=str+"&cb_ts=1";
			}
			
		}else{//快速
			str="search_type=2";
			if(!checkDateStr(document.getElementById("start_date").value,"开始日期")){
				return;
			}
			if(!checkDateStr(document.getElementById("end_date").value,"结束日期")){
				return;
			}
		}
		
		var paraStr=createPageParaStr();
		if(paraStr!=""){
			str=str+"&"+paraStr;
		}
		window.location="../business/AcceSear.html?"+str;
	}
	function doGo(pageIndex){
		var str=getSearchCondition();
		str=str+"&current_page="+pageIndex;
		window.location="../business/AcceSear.html?"+str;
	}
	
	function getSearchCondition(){
		var searchType="1";
		var str="search_type="+searchType;
		if(searchType=="1"){//高级
			str=str+"&cb_crea_date=1";
			
			
			
			
			str=str+"&cb_ts=1";
		}else{//快速
			
		}
		
		var paraStr=createProgramParaStr();
		if(paraStr!=""){
			str=str+"&"+paraStr;
		}
		
		return str;
	}
	function doJump(pageIndex){
		if(window.event.keyCode==13){
			doGo(pageIndex);
		}
	}
	function DoubleClick(it){
		
	}
	
	function doCancel(){
		window.close();
	}
	function doInit(){
		//Window_Onload();
	}
	function checkInput(){
		if(window.event.keyCode==13){
			doSearch();
		}
	}
	function doAutoCheck(objId){
		document.getElementById(objId).checked=true;
	}
	function selectStafferName(objId,checkObjId){
		var url="../base/StafferMainForSelect.html";
		ShowIframe("选择员工",url,800,500,"selectStafferNameCallBack('"+objId+"','"+checkObjId+"')");
	}
	function selectStafferNameCallBack(objId,checkObjId){
		if(popRetVal!=null){
			var arr=popRetVal.split(";");
			document.getElementById(objId).value=arr[1];
			doAutoCheck(checkObjId);
		}
	}
	function setDate(type){
		var d=new Date();
		var startStr="";
		var endStr="";
		if(type=="CURRENT_MONTH"){
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-01";
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="PREVIEW_MONTH"){
			d=new Date(d.getFullYear(),d.getMonth(),1);
			d.setDate(d.getDate()-1);
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-1";
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="TODAY"){
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}else if(type=="YESTERDAY"){
			d.setDate(d.getDate()-1);
			startStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
			endStr=d.getFullYear()+"-"+(d.getMonth()+1)+"-"+d.getDate();
		}
		document.getElementById("start_date").value=startStr;
		document.getElementById("end_date").value=endStr;
		doAutoCheck("cb_deliver_date");
	}
	
	function selectEstName(){
		var url="../base/EstablishmentListForSelect.html?type=CLIENT";
		ShowIframe("选择客户",url,900,500,"selectEstNameCallBack()");
	}
	function selectEstNameCallBack(){
		if(popRetVal!=null){
			document.getElementById("est_name").value=popRetVal[1];
			doAutoCheck("cb_est");
		}
	}
	function doDownload(id,fileName,sourceName){
		var xmlHttp=createXMLHttpRequest();
		xmlHttp.open("GET", "/FileDownloadLog.html?id="+id);
		xmlHttp.onreadystatechange = function(){
			doDownloadCallback(xmlHttp,fileName,sourceName);
		};
		xmlHttp.send(null);
	}
	function doDownloadCallback(xmlHttp,fileName,sourceName){
    	if (xmlHttp.readyState == 4) {
      		if (xmlHttp.status == 200) {
      			var resTxt=xmlHttp.responseText;
      			if(resTxt=="NO_LOGIN"){
      				ShowAlert('提示框','你还没登录或已经超时，请重新登录。',200,100);
      			}else if(resTxt=="OK"){
      				window.location="/FileDownload.html?file_name="+encodeURIComponent(fileName)+"&source_name="+encodeURIComponent(sourceName);
      			}
			}
		}
	}
</script>
</head>
<body oncontextmenu="return false">
<div class="Wrap"><!-- 页面主框架 -->
    
	<div id="ListContainer" class="Container" style="width: 984px;"><!-- 主体容器 -->
	    
	    <!-- 标题栏 -->
	    <div class="Heading BillIcon">
	        <div class="HeadingContent">
	            <h1>上传文件一览表</h1>
	            <span class="Note">查询指定期间上传的文件</span>
	        </div>
	    </div>
	
		<!-- 主内容 -->
		<div class="Content">
	        <!-- 筛选控件栏 -->
	        <div class="FilterBar ClearFix">
	            <div class="SearchIcon"></div>
	            <span class="fl">
	            	<table class="MoreOption" cellpadding="0" cellspacing="0">
	            		<tbody><tr><th class="c1" width="80px">
	            			<input type="checkbox" name="cb_crea_date" id="cb_crea_date" checked="true" style="visibility:hidden;">
	            			上传日期
	            		</th>
	            		<td width="360px">
	            			<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_crea_date&#39;);" id="start_date" name="start_date" value="2017-07-01">
			            	<img src="../images/calendar.gif" class="imgIconButton" onclick="displayCalendar(document.getElementById(&#39;start_date&#39;),&#39;yyyy-mm-dd&#39;,this,false,&#39;doAutoCheck(\&#39;cb_crea_date\&#39;)&#39;);">
			            	<input type="hidden" id="hid_start_date" value="2017-07-01">
			            	至
			            	<input type="text" class="TextBox Datetime" maxlength="15" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_crea_date&#39;);" id="end_date" name="end_date" value="2017-07-05">
			            	<img src="../images/calendar.gif" class="imgIconButton" onclick="displayCalendar(document.getElementById(&#39;end_date&#39;),&#39;yyyy-mm-dd&#39;,this,false,&#39;doAutoCheck(\&#39;cb_crea_date\&#39;)&#39;);">
			            	<input type="hidden" id="hid_end_date" value="2017-07-05">
			            	<a href="javascript:setDate(&#39;CURRENT_MONTH&#39;);">本月</a>
							<a href="javascript:setDate(&#39;TODAY&#39;);">今天</a>
							<a href="javascript:setDate(&#39;YESTERDAY&#39;);">昨天</a>
							<a href="javascript:setDate(&#39;PREVIEW_MONTH&#39;);">上月</a>
	            		</td>
	            	</tr></tbody></table>
	            </span>
				<span class="fr">
	            	<a href="javascript:;" id="lnkMoreOption">更多查询选项</a>
		  			<input type="button" value=" 查 询" onclick="doSearch();" class="buttom search-but" id="sSearchButton" name="sSearchButton">
	            </span>
				<div id="dvMoreOptionBox" class="MoreOptionBox" style="display:none;">
					<table class="MoreOption" cellpadding="0" cellspacing="0">
						<tbody><tr>
							<th class="c1" width="80px">
			        			<input type="checkbox" name="cb_bb_code" id="cb_bb_code">
			        			业务单号
			        		</th>
			        		<td class="c1" width="260px">
			        			<input type="text" class="TextBox" maxlength="50" name="bb_code" id="bb_code" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_bb_code&#39;);" value="">
								<input type="hidden" id="hid_bb_code" value="">
			    			</td>
							<th class="c2" width="80px">
			        			<input type="checkbox" name="cb_desi" id="cb_desi">
			        			设计员
			        		</th>
			    			<td class="c3" width="280px">
			        			<input type="text" class="TextBox" maxlength="15" name="desi_name" id="desi_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_desi&#39;);" value="">
			        			<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;desi_name&#39;,&#39;cb_desi&#39;);">
								<input type="hidden" id="hid_desi_name" value="">
			    			</td>
			    		</tr>
			    		<tr>
			    			<th class="c1">
			        			<input type="checkbox" name="cb_est" id="cb_est">
			        			订货单位
			        		</th>
			    			<td class="c1">
			        			<input type="text" class="TextBox" maxlength="50" name="est_name" id="est_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_est&#39;);" value="">
								<img class="imgIconButton" src="../images/make-a.gif" onclick="selectEstName();">
								<input type="hidden" id="hid_est_name" value="">
			    			</td>
			    			<th class="c2">
			        			<input type="checkbox" name="cb_crea" id="cb_crea">
			        			上传人
			        		</th>
			    			<td class="c3">
			        			<input type="text" class="TextBox" maxlength="15" name="crea_name" id="crea_name" onkeyup="checkInput();" onfocus="doAutoCheck(&#39;cb_crea&#39;);" value="">
								<img class="imgIconButton" src="../images/make-a.gif" onclick="selectStafferName(&#39;crea_name&#39;,&#39;cb_crea&#39;);">
								<input type="hidden" id="hid_crea_name" value="">
			    			</td>
						</tr>
						<tr>
							<th class="c1">
			        			<input type="checkbox" name="cb_ts" id="cb_ts" checked="true">
	                        	账套
			        		</th>
			    			<td class="c1">
			        			<select name="ts_id" id="ts_id" onfocus="doAutoCheck(&#39;cb_ts&#39;);">
				    				<option value="0">==请选择账套==</option>
				    				
									<option value="1" selected="">新异</option>
									<option value="2">网络公司</option>
								</select>
			        		</td>
			        		<th class="c2">&nbsp;</th>
			        		<td class="c3">&nbsp;</td>
						</tr>
					</tbody></table>
					
				</div>
			</div>
			
			<!-- 提示信息显示栏 -->
	        <div class="MsgBar">
	            
<table width="98%" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr id="errorMsgTr" style="display:none">
	  <td>
	  	<div class="msg-error" id="errorMsgTd">
	  	
	  	</div>
	  </td>
	</tr>
</tbody></table>
	        </div>
			
			<div class="TopToolBar">
				<table class="ListNoteInfo" cellpadding="0" cellspacing="0">
	            	<tbody><tr>
	                	<td>文件数：5个</td>
	            	</tr>
	            </tbody></table>
			</div>
			
			<div class="table-list">
		  		<table width="100%">      
					<tbody><tr>	
						<th width="8%">上传时间
						</th><th width="8%">上传人</th>
						<th width="12%">文件</th>
						<th width="12%">资料路径
						</th><th width="10%">文件说明</th>
						<th width="8%">工作中心
						</th><th width="12%">业务单号</th>
						<th width="12%">订货单位</th>
						<th width="10%">设计员</th>
						<th width="8%">操作</th>
					</tr>
					
					
					
					<tr class="query_list_data_tr1" index="1" style="cursor:pointer;" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>
							2017-07-05 16:22
							<input type="radio" name="query_checkbox" value="2185" style="display:none">
						</td>
						<td>张永灿</td>
						<td>索城广告.cdr</td>
						<td></td>
						<td></td>
						<td>默认工作中心</td>
						<td>E(1)2017070027</td>
						<td>荥阳索成广告</td>
						<td>张永灿 1</td>
						<td>
							
								<a href="http://115.28.87.22:8888/upload/2017-07-05/%E7%B4%A2%E5%9F%8E%E5%B9%BF%E5%91%8A.cdr" target="_blank">查看</a>
								<a href="javascript:doDownload(&#39;2185&#39;,&#39;/upload/2017-07-05/索城广告.cdr&#39;,&#39;索城广告.cdr&#39;);">下载</a>
							
							
							<!-- <a href="javascript:doDelete('2185');">删除</a> -->
						</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" index="2" style="cursor:pointer;" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>
							2017-07-04 09:46
							<input type="radio" name="query_checkbox" value="2182" style="display:none">
						</td>
						<td>伏龙</td>
						<td>雪花铝合金门牌.cdr</td>
						<td></td>
						<td></td>
						<td>默认工作中心</td>
						<td>E(1)2017070018</td>
						<td>郑州指南针标识</td>
						<td>伏龙 1</td>
						<td>
							
								<a href="http://115.28.87.22:8888/upload/2017-07-04/%E9%9B%AA%E8%8A%B1%E9%93%9D%E5%90%88%E9%87%91%E9%97%A8%E7%89%8C.cdr" target="_blank">查看</a>
								<a href="javascript:doDownload(&#39;2182&#39;,&#39;/upload/2017-07-04/雪花铝合金门牌.cdr&#39;,&#39;雪花铝合金门牌.cdr&#39;);">下载</a>
							
							
							<!-- <a href="javascript:doDelete('2182');">删除</a> -->
						</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr1" index="3" style="cursor:pointer;" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>
							2017-07-03 18:10
							<input type="radio" name="query_checkbox" value="2180" style="display:none">
						</td>
						<td>张永灿</td>
						<td>铝合金牌一块.cdr</td>
						<td></td>
						<td></td>
						<td>默认工作中心</td>
						<td>E(1)2017070015</td>
						<td>郑州善美广告</td>
						<td>张永灿 1</td>
						<td>
							
								<a href="http://115.28.87.22:8888/upload/2017-07-03/%E9%93%9D%E5%90%88%E9%87%91%E7%89%8C%E4%B8%80%E5%9D%97.cdr" target="_blank">查看</a>
								<a href="javascript:doDownload(&#39;2180&#39;,&#39;/upload/2017-07-03/铝合金牌一块.cdr&#39;,&#39;铝合金牌一块.cdr&#39;);">下载</a>
							
							
							<!-- <a href="javascript:doDelete('2180');">删除</a> -->
						</td>
					</tr>
					
					
					
					<tr class="query_list_data_tr2" index="4" style="cursor:pointer;" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>
							2017-07-02 11:55
							<input type="radio" name="query_checkbox" value="2177" style="display:none">
						</td>
						<td>张永灿</td>
						<td>d空白去向牌.cdr</td>
						<td></td>
						<td></td>
						<td>默认工作中心</td>
						<td>E(1)2017070008</td>
						<td>郑州中力国标标识</td>
						<td>张永灿 1</td>
						<td>
							
								<a href="http://115.28.87.22:8888/upload/2017-07-02/d%E7%A9%BA%E7%99%BD%E5%8E%BB%E5%90%91%E7%89%8C.cdr" target="_blank">查看</a>
								<a href="javascript:doDownload(&#39;2177&#39;,&#39;/upload/2017-07-02/d空白去向牌.cdr&#39;,&#39;d空白去向牌.cdr&#39;);">下载</a>
							
							
							<!-- <a href="javascript:doDelete('2177');">删除</a> -->
						</td>
					</tr>
					
					
					
					<tr class="query_list_data_trOver" index="5" style="cursor:pointer;" ondblclick="javascript:DoubleClick(this)" onclick="javascript:ClickCheck(this)" onmouseout="javascript:mouseout(this)" onmouseover="javascript:mouseover(this)">
						<td>
							2017-07-01 17:57
							<input type="radio" name="query_checkbox" value="2176" style="display:none">
						</td>
						<td>张永灿</td>
						<td>7.1一品弘.cdr</td>
						<td></td>
						<td></td>
						<td>默认工作中心</td>
						<td>E(1)2017070006</td>
						<td>郑州一品弘</td>
						<td>张永灿 1</td>
						<td>
							
								<a href="http://115.28.87.22:8888/upload/2017-07-01/7.1%E4%B8%80%E5%93%81%E5%BC%98.cdr" target="_blank">查看</a>
								<a href="javascript:doDownload(&#39;2176&#39;,&#39;/upload/2017-07-01/7.1一品弘.cdr&#39;,&#39;7.1一品弘.cdr&#39;);">下载</a>
							
							
							<!-- <a href="javascript:doDelete('2176');">删除</a> -->
						</td>
					</tr>
					
				</tbody></table>
			</div>

			<!-- 底栏 分页、操作等 -->
	        <div class="BottomToolBar ClearFix">
			    	
    <div class="table-bot">
    	
    	
    	 
    	  <img src="../images/but001.gif">
    	  <img src="../images/but002.gif">
    	    	
    	第 <input type="text" name="pageNumber" style="width:30px" value="1" onkeydown="javascript:doJump(this.value);" class="TextBox"> 页 
    	共1页
		
		
        <img src="../images/but003.gif">
        <img src="../images/but004.gif">
		
    </div>
	        </div>
			
		</div>
	</div>
</div>


<script type="text/javascript">
	function ChangeWindowSize( container, maxWidth ){
	    setTimeout( function(){
	        var w1 = document.documentElement.clientWidth-40;
	        if( w1>maxWidth ) w1 = maxWidth;
	        else if( w1<970 ) w1 = 960;
	        container.style.width = w1+'px';
	    }, 300 );
	}
	var IsAdvSearch = false;
	(function(){
		doInit();
	    var ListContainer = document.getElementById('ListContainer');
	    ChangeWindowSize( ListContainer, 2020 );    // 超过 1280 的最大 1260 ，不全部铺满
	
	    var lnkMoreOption   = document.getElementById('lnkMoreOption');
	    var lnkHiddenOption = document.getElementById('lnkHiddenOption');
	    lnkMoreOption.onclick = function(){
	    	IsAdvSearch = true;
	        document.getElementById('dvMoreOptionBox').style.display = 'block';
	        document.getElementById('cb_crea_date').style.visibility = 'visible';
	        this.style.visibility = 'hidden';
	    };
	    lnkHiddenOption.onclick = function(){
	    	IsAdvSearch = false;
	        document.getElementById('dvMoreOptionBox').style.display = 'none';
	        document.getElementById('cb_crea_date').style.visibility = 'hidden';
	        lnkMoreOption.style.visibility = 'visible';
	    };
	})();
</script>
</body></html>